//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IBatch.h>
///	@path	~/src/graphics/
///	@date	2007/11/15
///	@desc	Batch interface.

#pragma once

#include "xeres.h"

#include "graphics/IDevice.h"

namespace xeres {

	// forward declaration
	class RenderContext;

	/*!
		\class	IBatch
		\brief	Render Batch interface.
	*/
	class IBatch : public IObject
	{
	public:
		
		/// \name Constructor & Destructor
		//@{

		/// \ctor
		IBatch( void );

		/// \dtor
		virtual ~IBatch( void );

		//@}

		DECL_IOBJECT_INTERFACE( IBatch , IObject );

	public:

		/// \name IBatch Interface
		//@{

		/*! 
			\brief		Begin batch.
		*/
		virtual void BeginBatch( void ) = 0;

		/*! 
			\brief		End batch.
		*/
		virtual void EndBatch( void ) = 0;

		/*!
			\brief		Render batch.
		*/
		virtual void Render( RenderContext& rc ) = 0;

		//@}
	};

} // namespace xeres
